package com.landi.carkey.ui;

import android.webkit.WebView;
import android.webkit.WebViewClient;

import com.landi.carkey.R;
import com.landi.carkey.core.BaseActivity;

public class WebViewActivity extends BaseActivity {

    private WebView webView;

    @Override
    protected void setUpContentView() {
        setContentView(R.layout.activity_web_view, R.string.friend, MODE_BACK);
    }

    @Override
    protected void setUpView() {
        this.webView = ((WebView)findViewById(R.id.webview));
        this.webView.getSettings().setDomStorageEnabled(true);
        this.webView.getSettings().setJavaScriptEnabled(true);
        this.webView.getSettings().setAppCacheEnabled(true);
        this.webView.setWebViewClient(new WebViewClient()
        {
            public boolean shouldOverrideUrlLoading(WebView paramAnonymousWebView, String paramAnonymousString)
            {
                paramAnonymousWebView.loadUrl(paramAnonymousString);
                return true;
            }
        });
        this.webView.loadUrl("file:///android_asset/index.html");
    }

    @Override
    protected void setUpData() {
    }
}
